import $http from 'static/js/http';

export function getMemberOrders (data) {
  // return $http.post('user/member/orders', data);
  return $http.get('order/order/get-member-orders', { params: data });
}

export function createOrderFromCart(data){
  return $http.post('order/order/create-order-from-cart', data);
}


const order = {
  getMemberOrders,
  createOrderFromCart
};

export default order;
